"""元数据处理器基类"""

from abc import ABC, abstractmethod
from typing import Dict, Any

class MetaProcessor(ABC):
    """元数据处理器基类"""
    
    def __init__(self):
        self.type = self.__class__.__name__.lower().replace("metaprocessor", "")
    
    @abstractmethod
    def process(self, meta: Dict[str, Any]) -> Dict[str, Any]:
        """处理元数据
        
        Args:
            meta: 元数据字典
            
        Returns:
            Dict[str, Any]: 处理后的元数据
        """
        pass
    
    @abstractmethod
    def process_field(self, field_meta: Dict[str, Any]) -> Dict[str, Any]:
        """处理字段元数据
        
        Args:
            field_meta: 字段元数据字典
            
        Returns:
            Dict[str, Any]: 处理后的字段元数据
        """
        pass 